# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.930.107.12 -> 1.930.107.13 # (new) -> 1.1 Documentation/vm/hugetlbpage.txt # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/06/03 bjorn_helgaas@hp.com 1.930.1.207 # Merge hp.com:/home/helgaas/bk/to-marcelo-2.4 # into hp.com:/home/helgaas/bk/linux-ia64-2.4 # -------------------------------------------- # 03/06/03 bjorn_helgaas@hp.com 1.930.1.208 # Merge hp.com:/home/helgaas/bk/ia64-extras # into hp.com:/home/helgaas/bk/linux-ia64-2.4 # -------------------------------------------- # 03/06/03 gibbs@overdrive.btc.adaptec.com 1.930.160.7 # Aic7xxx Driver Update # o Bump version number to 6.2.36 # o Document recent aic7xxx driver releases # -------------------------------------------- # 03/06/03 gibbs@overdrive.btc.adaptec.com 1.930.160.8 # Aic79xx Driver Update # o Bump driver version to 1.3.10 # o Document recent releases in driver readme. # -------------------------------------------- # 03/06/03 gibbs@overdrive.btc.adaptec.com 1.930.160.9 # Update Aic79xx Readme # -------------------------------------------- # 03/06/03 rddunlap@osdl.org 1.930.130.44 # [NET]: add RFC references for Linux SNMP MIBs. # -------------------------------------------- # 03/06/03 rddunlap@osdl.org 1.930.130.45 # [NET]: Typo corrections only. # -------------------------------------------- # 03/06/04 thomas@osterried.de 1.930.130.46 # [AX25]: AX.25 bug fixes. # - Flexnet CRC handling fix for mkiss.c # - Use after free bug in ax25_ip.c # - Make flags unsigned in ax25_out.c # -------------------------------------------- # 03/06/04 maxk@qualcomm.com 1.930.126.53 # Merge bk://linux.bkbits.net/linux-2.4 # into qualcomm.com:/home/kernel/bt-2.4 # -------------------------------------------- # 03/06/04 marcelo@freak.distro.conectiva 1.930.162.1 # Backout erroneous kiobuf dcache flush changes # Cset exclude: jsun@mvista.com|ChangeSet|20030425203656|60956 # -------------------------------------------- # 03/06/04 jgarzik@redhat.com 1.930.162.2 # Merge redhat.com:/garz/repo/marcelo-2.4 # into redhat.com:/garz/repo/net-drivers-2.4 # -------------------------------------------- # 03/06/04 jgarzik@redhat.com 1.930.162.3 # [netdrvr] gcc 3.3 cleanups # # Mostly marking 64-bit constants as ULL. # -------------------------------------------- # 03/06/05 reeja.john@amd.com 1.930.162.4 # [netdrvr amd8111e] link against mii lib # -------------------------------------------- # 03/06/05 marcelo@freak.distro.conectiva 1.930.163.1 # Changed EXTRAVERSION to -pre8 # -------------------------------------------- # 03/06/05 bcollins@debian.org 1.930.159.3 # [SPARC64]: Final image strip not to strip too much. # -------------------------------------------- # 03/06/05 hugh@veritas.com 1.930.163.2 # [PATCH] Fix shmctl(SHM_LOCK/UNLOCK) deadlock # # On Wed, 4 Jun 2003, Andrea Arcangeli wrote: # > this patch fixes an SMP deadlock that triggered in some production # > usage: # # Yes, worth fixing in 2.4.21, thanks Andrea: # shmem_lock tried for a semaphore while sys_shmctl holds a spinlock. # # Patch below against 2.4.21-rc7 - Andrea's patch against his own tree # may have deterred you! As he said, using spin_lock here is actually # superfluous, but raises fewer eyebrows than omitting it. I want to # send you patches in early 2.4.22 to bring many of the 2.5 tmpfs mods # into 2.4, which would fix this: but the hangfix is worth taking now. # -------------------------------------------- # 03/06/06 scott.feldman@intel.com 1.930.162.5 # [PATCH] 10GbE ethtool support # # Add 10GbE support for ethtool. # -------------------------------------------- # 03/06/06 scott.feldman@intel.com 1.930.162.6 # [PATCH] remove ethtool privileged references # # dev_ioctl already checks capable(CAP_NET_ADMIN) for SOICETHTOOL, so # privileged reference are not necessary. # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.7 # [PATCH] Bonding 2.4 update patch 1 # # Documentation. # # Index: linux-2.4.21-rc6-netdrvr1/Documentation/networking/bonding.txt # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.8 # [PATCH] Bonding 2.4 update patch 2 # # Small patch to fix endless failover problem in the ARP monitor. # # Index: linux-2.4.21-rc6-netdrvr1/drivers/net/bonding/bond_main.c # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.9 # [PATCH] Bonding 2.4 update patch 3 # # A patch with some miscellaneous little stuff (comments, mode # names, fix a printk). # # Index: linux-2.4.21-rc6-netdrvr1/drivers/net/bonding/bond_main.c # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.10 # [PATCH] Bonding 2.4 update patch 4 # # A fix for ifenslave -c. Later patches have fixes for this fix. # # Index: linux-2.4.21-rc6-netdrvr1/Documentation/networking/ifenslave.c # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.11 # [PATCH] Bonding 2.4 update patch 5 # # Fix to prevent routes on the bonding device from being lost # during enslavement processing. # # Index: linux-2.4.21-rc6-netdrvr1/Documentation/networking/ifenslave.c # -------------------------------------------- # 03/06/06 fubar@us.ibm.com 1.930.162.12 # [PATCH] Bonding 2.4 update patch 6 # # Fix to the ifenslave -c fix, fix to version control (plus # change log update). I've got an additional fix for version control # that I'll send you on Monday. # # Index: linux-2.4.21-rc6-netdrvr1/Documentation/networking/ifenslave.c # -------------------------------------------- # 03/06/06 jgarzik@redhat.com 1.930.162.13 # Merge redhat.com:/garz/repo/marcelo-2.4 # into redhat.com:/garz/repo/net-drivers-2.4 # -------------------------------------------- # 03/06/06 jfs.adm@hostme.bitkeeper.com 1.930.163.3 # Merge bk://linux.bkbits.net/linux-2.4 # into hostme.bitkeeper.com:/ua/repos/j/jfs/linux-2.4 # -------------------------------------------- # 03/06/07 davem@nuts.ninka.net 1.930.130.47 # [IPV6]: Do not invoke icmpv6_send with uninitialized skb->dev. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.14 # [e100] Remove "Freeing alive device" warning # # * Bug fix: don't call any netif_carrier_* until netdev is registered. # [Andrew Morton (akpm@dideo.com)] # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.15 # [e100] move e100_asf_enable under CONFIG_PM to avoid warning # # * Bug fix: move e100_asf_enable under CONFIG_PM to avoid compile warning. # [Stephen Rothwell (sfr@canb.auug.org.ua)] # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.16 # [e100] Add ethtool parameter support # # * Feature add: ethtool parameter support: Tx/Rx ring size, Rx xsum # offloading, flow control. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.17 # [e100] Add ethtool cable diag test # # * Feature add: ethtool cable diag test. # * Some cleanup of the ethtool diags. # * Fixed bug in return code for ethtool diag results. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.18 # [e100] Add MDI/MDI-X status to ethtool reg dump # # * Add MDI/MDI-X (crossover cable) status to ethtool reg dump. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.19 # [e100] cleanup Tx resources before running ethtool diags # # * Bug fix: clean up Tx resources before runnig ethtool diags. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.20 # [e100] full stop/start on ethtool set speed/duplex/autoneg # # * Cleanup ethtool/mii_ioctl sets of speed/duplex/autoneg by # stop/set/start driver to ensure sets stick. Must hold # xmit_lock around stop/start. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.21 # [e100] fixed stalled stats collection # # * Bug fix: In the rare event of a failed command to dump stats, # stat collection would stop, giving the illusion that traffic # had stopped. Fixed by issuing stat dump in watchdog # regardless of the status of previous attempt to dump stats. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.22 # [e100] VLAN configuration was lost after ethtool diags run # # * Bug fix: ethtool diags would call e100_up/e100_down, which overwrite # current VLAN settings. Move initialization of config regs out of # up/down. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.23 # [e100] use skb_headlen() rather than rolling own. # # * Cleanup: use skb_headlen() rather than rolling own. Sync w/ 2.5 driver. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.24 # [e100] set netdev members before registration # # * Bug fix: setndev members before netdev registration to avoid races. # -------------------------------------------- # 03/06/08 scott.feldman@intel.com 1.930.162.25 # [e100] misc # # * Removed leftovers from removal of /proc support and IDIAG support # * Cleaned up reporting of h/w init failure messages # * Add 1/2 second delay after PHY reset to allow link partner to # see and respond to reset, per IEEE 802.3. # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.26 # [e1000] TSO fix # # * Premature write-back of descriptors during TSO causing # resources to be returned too early on ppc64. Fix is to # wait until last descriptor of frame is written back, # then return resources back to OS. # * 82544 hang caused by setting RS bit in context descriptor. # Exposes known hang in 82544. Fix is same as above - set # RS bit only in last descriptor. # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.27 # [e1000] Added ethtool test ioctl # # * Added routines for the Ethtool Test ioctl. # * Added more statistics for the Ethtool statistics dump. # * Added more registers for the register dump. # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.28 # [e1000] Added support for 82546 Quad-port adapter # # * Added support for 82546 Quad-port adapter # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.29 # [e1000] Removed strong branded device ids # # * Removed strong branded device ids from teh device id table # along with the associated branding strings. # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.30 # [e1000] Fixed LED coloring on 82541/82547 controllers # # * LED colors on 82541 and 82547 controllers were incorrect. # The LED mode register didn't have the proper configuration. # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.31 # [e1000] Miscellaneous code cleanup # # * Added Change Log entries # * Miscellaneous code cleanup # -------------------------------------------- # 03/06/08 cramerj@intel.com 1.930.162.32 # [e1000] Whitespace cleanup # # * Whitespace cleanup # -------------------------------------------- # 03/06/08 reeja.john@amd.com 1.930.162.33 # [netdrvr amd8111e] bug fix: move stats update after irq free # -------------------------------------------- # 03/06/09 geert@linux-m68k.org 1.930.130.48 # [NET]: asm/smp.h --> linux/smp.h in sch_ingress.c # -------------------------------------------- # 03/06/09 geert@linux-m68k.org 1.930.164.1 # [PATCH] sch_ingress.c includes # # sch_ingress.c includes , causing build failures on UMP-only # architectures # -------------------------------------------- # 03/06/09 geert@linux-m68k.org 1.930.164.2 # [PATCH] Fix ext2fs warning # # ext2fs: Fix incorrect printf() format (already fixed in 2.5) # -------------------------------------------- # 03/06/09 geert@linux-m68k.org 1.930.164.3 # [PATCH] lmc_proto.c includes # # lmc_proto.c includes , causing build failures on UMP-only # architectures # -------------------------------------------- # 03/06/09 marcelo@freak.distro.conectiva 1.930.164.4 # Cset exclude: geert@linux-m68k.org|ChangeSet|20030609201637|12385 # -------------------------------------------- # 03/06/09 marcelo@freak.distro.conectiva 1.930.164.5 # Cset exclude: geert@linux-m68k.org|ChangeSet|20030609201907|11405 # -------------------------------------------- # 03/06/09 mgreer@mvista.com 1.930.153.19 # PPC32: Fix the gen550 infrastructure for baud rates other than 9600 # -------------------------------------------- # 03/06/10 marcelo@freak.distro.conectiva 1.930.164.6 # Remove bogus license for Rocket driver and change it to GPL # -------------------------------------------- # 03/06/11 maxk@qualcomm.com 1.930.126.54 # Bluetooth: RFCOMM must send MSC when DLC was opened by SABM. # -------------------------------------------- # 03/06/11 agrover@groveronline.com 1.988 # Merge groveronline.com:/root/bk/linux-2.4 # into groveronline.com:/root/bk/linux-2.4-acpi # -------------------------------------------- # 03/06/11 jfs.adm@hostme.bitkeeper.com 1.930.163.4 # Merge bk://linux.bkbits.net/linux-2.4 # into hostme.bitkeeper.com:/ua/repos/j/jfs/linux-2.4 # -------------------------------------------- # 03/06/11 jejb@raven.il.steeleye.com 1.930.156.7 # Add XRAYTEX to SCSI whitelist # -------------------------------------------- # 03/06/11 maxk@qualcomm.com 1.930.126.55 # [Bluetooth] Fix RFCOMM C/R and Direction bit handling. # MCC C/R bit does not depend on connection state. # Direction bit must be set for DLCs located on the initiator. # -------------------------------------------- # 03/06/11 bdschuym@pandora.be 1.930.130.49 # [NETFILTER]: Fix ARPT_INV_MASK in arp_tables.h # -------------------------------------------- # 03/06/11 krkumar@us.ibm.com 1.930.130.50 # [NET]: Initialize sysctl_table to NULL in neigh_parms_alloc. # -------------------------------------------- # 03/06/11 davidm@napali.hpl.hp.com 1.930.130.51 # [TG3]: Workaround 4g DMA bug more portably. # -------------------------------------------- # 03/06/12 dlstevens@us.ibm.com 1.930.108.27 # [IGMP]: Make sock_alloc_send_skb calls non-blocking. # -------------------------------------------- # 03/06/12 jgarzik@redhat.com 1.930.162.34 # Merge redhat.com:/garz/repo/marcelo-2.4 # into redhat.com:/garz/repo/net-drivers-2.4 # -------------------------------------------- # 03/06/12 paulus@samba.org 1.930.130.52 # [PPP]: Fix PPP Deflate sequence number checking # -------------------------------------------- # 03/06/12 maxk@qualcomm.com 1.930.126.56 # [Bluetooth] L2CAP qualification spec mandates sending additional config request # if we receive config response with unacceptable parameters error code. # So we now send dummy request to keep tester happy. # -------------------------------------------- # 03/06/13 agrover@groveronline.com 1.989 # ACPI: Re-add acpitable.c. This makes some people happy I hope, and also (!) # cleans up the code a little - a big #ifndef reduction. # -------------------------------------------- # 03/06/13 agrover@groveronline.com 1.990 # ACPI: Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) # -------------------------------------------- # 03/06/13 maxk@qualcomm.com 1.930.126.57 # Merge bk://linux.bkbits.net/linux-2.4 # into qualcomm.com:/home/kernel/bt-2.4 # -------------------------------------------- # 03/06/13 marcel@holtmann.org 1.930.126.58 # [Bluetooth] Add CAPI message transport protocol support # # This adds support for the CAPI message transport protocol (CMTP) # to the Bluetooth subsystem. # -------------------------------------------- # 03/06/13 agrover@groveronline.com 1.991 # ACPI: Add missing CONFIG_ACPI_HT_ONLY entry to Configure.help # -------------------------------------------- # 03/06/14 robert.olsson@data.slu.se 1.930.130.53 # [IPV4]: Add rtcache hash lookup statistics to rtstat. # -------------------------------------------- # 03/06/15 typhoon.adm@hostme.bitkeeper.com 1.930.165.1 # Merge http://linux.bkbits.net/linux-2.4 # into hostme.bitkeeper.com:/ua/repos/t/typhoon/typhoon-2.4 # -------------------------------------------- # 03/06/15 dwmw2@dwmw2.baythorne.internal 1.930.166.1 # Merge dwmw2.baythorne.internal:/inst/bk/linux-2.4 # into dwmw2.baythorne.internal:/inst/bk/crc32-2.4 # -------------------------------------------- # 03/06/16 kuznet@ms2.inr.ac.ru 1.930.130.54 # [IPV4]: More sane rtcache behavior. # 1) More reasonable ip_rt_gc_min_interval default # 2) Trim less valuable entries in hash chain during # rt_intern_hash when such chains grow too long. # -------------------------------------------- # 03/06/16 davem@nuts.ninka.net 1.930.159.4 # [SPARC64]: Merge sysinfo32 corrections from ppc64 port. # -------------------------------------------- # 03/06/16 robert.olsson@data.slu.se 1.930.130.55 # [IPV4]: In rt_intern_hash, reinit all state vars on branch to "restart". # -------------------------------------------- # 03/06/16 jengel@brule.rchland.ibm.com 1.930.110.4 # update arch/ppc64 and include/asm-ppc64 # -------------------------------------------- # 03/06/16 mort@wildopensource.com 1.930.161.6 # [PATCH] ia64: runtime platform detection for 2.5 # # This is a 2.5 version of the patch that I juggled around a couple of # weeks ago. It's just a simple macro that allows one to check if the # kernel is running on a specific ia64 platform. # -------------------------------------------- # 03/06/17 paulus@samba.org 1.930.167.1 # Merge samba.org:/home/paulus/kernel/linux-2.4 # into samba.org:/home/paulus/kernel/for-marcelo-ppc # -------------------------------------------- # 03/06/17 jengel@brule.rchland.ibm.com 1.930.168.1 # Merge bk://linux.bkbits.net/linux-2.4 # into brule.rchland.ibm.com:/development/jengel/kernel/cvs/for-marcello/bk-linux-2.4-for-marcelo # -------------------------------------------- # 03/06/17 heiko.carstens@de.ibm.com 1.930.156.8 # [PATCH] sd.c: set data direction to SCSI_DATA_NONE for START_STOP # # while trying to access a disk drive via an FCP bridge we got an FCP_RSP IU # with the RSP_CODE field set to "FCP_CMND Fields Invalid". This happened # after sending a START_STOP command to the device. Reason for this was that # the FCP_CMND IU incorrectly had the RDDATA field set to one, because of a # bug in sd_init_onedisk(). There the data direction for START_STOP is set # to SCSI_DATA_READ instead of SCSI_DATA_NONE. # -------------------------------------------- # 03/06/17 bjorn_helgaas@hp.com 1.930.107.13 # Add Documentation/vm/hugetlbpage.txt from 2.5. # -------------------------------------------- # diff -Nru a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt --- /dev/null Wed Dec 31 16:00:00 1969 +++ b/Documentation/vm/hugetlbpage.txt Wed Oct 8 09:06:58 2003 @@ -0,0 +1,203 @@ + +The intent of this file is to give a brief summary of hugetlbpage support in +the Linux kernel. This support is built on top of multiple page size support +that is provided by most of modern architectures. For example, IA-32 +architecture supports 4K and 4M (2M in PAE mode) page sizes, IA-64 +architecture supports multiple page sizes 4K, 8K, 64K, 256K, 1M, 4M, 16M, +256M. A TLB is a cache of virtual-to-physical translations. Typically this +is a very scarce resource on processor. Operating systems try to make best +use of limited number of TLB resources. This optimization is more critical +now as bigger and bigger physical memories (several GBs) are more readily +available. + +Users can use the huge page support in Linux kernel by either using the mmap +system call or standard SYSv shared memory system calls (shmget, shmat). + +First the Linux kernel needs to be built with CONFIG_HUGETLB_PAGE (present +under Processor types and feature) and CONFIG_HUGETLBFS (present under file +system option on config menu) config options. + +The kernel built with hugepage support should show the number of configured +hugepages in the system by running the "cat /proc/meminfo" command. + +/proc/meminfo also provides information about the total number of hugetlb +pages configured in the kernel. It also displays information about the +number of free hugetlb pages at any time. It also displays information about +the configured hugepage size - this is needed for generating the proper +alignment and size of the arguments to the above system calls. + +The output of "cat /proc/meminfo" will have output like: + +..... +HugePages_Total: xxx +HugePages_Free: yyy +Hugepagesize: zzz KB + +/proc/filesystems should also show a filesystem of type "hugetlbfs" configured +in the kernel. + +/proc/sys/vm/nr_hugepages indicates the current number of configured hugetlb +pages in the kernel. Super user can dynamically request more (or free some +pre-configured) hugepages. +The allocation( or deallocation) of hugetlb pages is posible only if there are +enough physically contiguous free pages in system (freeing of hugepages is +possible only if there are enough hugetlb pages free that can be transfered +back to regular memory pool). + +Pages that are used as hugetlb pages are reserved inside the kernel and can +not be used for other purposes. + +Once the kernel with Hugetlb page support is built and running, a user can +use either the mmap system call or shared memory system calls to start using +the huge pages. It is required that the system administrator preallocate +enough memory for huge page purposes. + +Use the following command to dynamically allocate/deallocate hugepages: + + echo 20 > /proc/sys/vm/nr_hugepages + +This command will try to configure 20 hugepages in the system. The success +or failure of allocation depends on the amount of physically contiguous +memory that is preset in system at this time. System administrators may want +to put this command in one of the local rc init file. This will enable the +kernel to request huge pages early in the boot process (when the possibility +of getting physical contiguous pages is still very high). + +If the user applications are going to request hugepages using mmap system +call, then it is required that system administrator mount a file system of +type hugetlbfs: + + mount none /mnt/huge -t hugetlbfs + +This command mounts a (pseudo) filesystem of type hugetlbfs on the directory +/mnt/huge. Any files created on /mnt/huge uses hugepages. An example is +given at the end of this document. + +read and write system calls are not supported on files that reside on hugetlb +file systems. + +Also, it is important to note that no such mount command is required if the +applications are going to use only shmat/shmget system calls. It is possible +for same or different applications to use any combination of mmaps and shm* +calls. Though the mount of filesystem will be required for using mmaps. + +/* Example of using hugepage in user application using Sys V shared memory + * system calls. In this example, app is requesting memory of size 256MB that + * is backed by huge pages. Application uses the flag SHM_HUGETLB in shmget + * system call to informt the kernel that it is requesting hugepages. For + * IA-64 architecture, Linux kernel reserves Region number 4 for hugepages. + * That means the addresses starting with 0x800000....will need to be + * specified. + */ +#include +#include +#include +#include + +extern int errno; +#define SHM_HUGETLB 04000 +#define LPAGE_SIZE (256UL*1024UL*1024UL) +#define dprintf(x) printf(x) +#define ADDR (0x8000000000000000UL) +main() +{ + int shmid; + int i, j, k; + volatile char *shmaddr; + + if ((shmid =shmget(2, LPAGE_SIZE, SHM_HUGETLB|IPC_CREAT|SHM_R|SHM_W )) +< 0) { + perror("Failure:"); + exit(1); + } + printf("shmid: 0x%x\n", shmid); + shmaddr = shmat(shmid, (void *)ADDR, SHM_RND) ; + if (errno != 0) { + perror("Shared Memory Attach Failure:"); + exit(2); + } + printf("shmaddr: %p\n", shmaddr); + + dprintf("Starting the writes:\n"); + for (i=0;i +#include +#include +#include + +#define FILE_NAME "/mnt/hugepagefile" +#define LENGTH (256*1024*1024) +#define PROTECTION (PROT_READ | PROT_WRITE) +#define FLAGS MAP_SHARED |MAP_FIXED +#define ADDRESS (char *)(0x60000000UL + 0x8000000000000000UL) + +extern errno; + +check_bytes(char *addr) +{ + printf("First hex is %x\n", *((unsigned int *)addr)); +} + +write_bytes(char *addr) +{ + int i; + for (i=0;i